<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" name="row[id]" value="{$row.id}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_no" data-rule="required" readonly class="form-control" name="row[order_no]" type="text" value="{$row.order_no|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_no" data-rule="required" readonly class="form-control" name="row[service_name]" type="text" value="{$row.service_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" {if $money_readonly == 1} disabled {/if}  name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>
            <span style="color:rgb(135, 144, 152)">注意：首次点击“已结束”并且提交后，将按照当前页面的最终配置给销售/代理商/分公司 发放提成金额（资金发放后，不可再修改）</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Schedule_json')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <dl class="fieldlist" data-name="row[schedule_json]">
                <dd>
                    <ins>{:__('日期')}</ins>
                    <ins>{:__('进度内容')}</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[schedule_json]" class="form-control hide" cols="30" rows="5">{$row.schedule_json|htmlentities}</textarea>
            </dl>
            <span style="color:rgb(135, 144, 152)">注意：日期格式例如 2024-01-01</span>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_money" data-rule="required" {if $money_readonly == 1} readonly {/if}  class="form-control" step="0.01" name="row[order_money]" type="number" value="{$row.order_money|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Branch_office_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-branch_office_uid" data-rule="" readonly class="form-control" name="row[branch_office_name]" type="text" value="{$row.branch_office_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Branch_office_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-branch_office_rate" data-rule="required" {if $money_readonly == 1} readonly {/if}  class="form-control" step="0.01" name="row[branch_office_rate]" type="number" value="{$row.branch_office_rate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Branch_office_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-branch_office_money" readonly data-rule="" class="form-control" step="0.01" name="row[branch_office_money]" type="number" value="{$row.branch_office_money|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Agent_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-agent_uid" data-rule="" readonly class="form-control" name="row[agent_name]" type="text" value="{$row.agent_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Agent_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-agent_rate" data-rule="required" {if $money_readonly == 1} readonly {/if}  class="form-control" step="0.01" name="row[agent_rate]" type="number" value="{$row.agent_rate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Agent_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-agent_money" data-rule="" readonly class="form-control" step="0.01" name="row[agent_money]" type="number" value="{$row.agent_money|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sale_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sale_uid" data-rule="" readonly class="form-control" name="row[sale_name]" type="text" value="{$row.sale_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sale_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sale_rate" data-rule="required" {if $money_readonly == 1} readonly {/if} class="form-control" step="0.01" name="row[sale_rate]" type="number" value="{$row.sale_rate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sale_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sale_money" data-rule="" readonly class="form-control" step="0.01" name="row[sale_money]" type="number" value="{$row.sale_money|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contract_file')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-file" data-rule="" class="form-control" size="50" name="row[contract_file]" type="text" value="{$row.contract_file|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-file" class="btn btn-danger faupload" data-input-id="c-file" data-multiple="false" data-preview-id="p-file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-file" class="btn btn-primary fachoose" data-input-id="c-file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-file"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-file"></ul>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
